
const express = require('express'); 
let router = express.Router();
const user = require("../routerserver/user.js")
const airticle = require("../routerserver/airticle.js")
const comment = require("../routerserver/comment.js")
const techology = require("../routerserver/techology.js")
const goods = require("../routerserver/goods.js")
const count = require("../routerserver/count.js")
const homepagecount = require("../routerserver/homepagecount.js")



//用户账户操作
router.post('/user/assign',user.userassign);//用户注册
router.post('/user/login',user.userlogin);//用户登录
router.post('/user/change',user.userchange);//用户登录


//文章操作
router.post('/airticcle/remove',airticle.airticleremove);//去除文章
router.post('/airticcle/add',airticle.airticleAdd);//添加文章
router.post('/airticcle/show',airticle.airticleShowlist);//显示文章列表
router.post('/airticcle/changeinfo',airticle.airticleInfoChange);//显示文章列表

//评论操作
router.post('/comment/add',comment.commentAdd);//添加评论
router.post('/comment/show',comment.commentShowlist);//显示评论列表

//技术交流
router.post('/techology/remove',techology.techologyremove);//去除文章
router.post('/techology/add',techology.techologyAdd);//添加交流帖子
router.post('/techology/show',techology.techologyShowlist);//显示文章列表

//点赞
router.post('/goods/airticle',goods.airticlegoodsAdd);//添加文章点赞
router.post('/goods/comment',goods.commentsgoodsAdd);//添加评论点赞
router.post('/goods/techology',goods.techologysgoodsAdd);//添加评论点赞

//获取文章数量
router.post('/count/getcount',count.getindexcount);//添加文章点赞


//主页访问记录
router.post('/homepagecount/add',homepagecount.homepagecountAdd);//访问记录
router.post('/homepagecount/get',homepagecount.homepagecountGet);//访问记录
module.exports = router;